home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMSVGImageElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  142 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMSVGImageElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMSVGImageElement_h__
  6. #define __gen_nsIDOMSVGImageElement_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMSVGElement_h__
  10. #include "nsIDOMSVGElement.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMSVGAnimatedLength; /* forward declaration */
  18.  
  19. class nsIDOMSVGAnimatedPreserveAspectRatio; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIDOMSVGImageElement */
  23. #define NS_IDOMSVGIMAGEELEMENT_IID_STR "43ae4efe-2610-4cce-8242-279e556a78fa"
  24.  
  25. #define NS_IDOMSVGIMAGEELEMENT_IID \
  26.   {0x43ae4efe, 0x2610, 0x4cce, \
  27.     { 0x82, 0x42, 0x27, 0x9e, 0x55, 0x6a, 0x78, 0xfa }}
  28.  
  29. class NS_NO_VTABLE nsIDOMSVGImageElement : public nsIDOMSVGElement {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMSVGIMAGEELEMENT_IID)
  33.  
  34.   /* readonly attribute nsIDOMSVGAnimatedLength x; */
  35.   NS_IMETHOD GetX(nsIDOMSVGAnimatedLength * *aX) = 0;
  36.  
  37.   /* readonly attribute nsIDOMSVGAnimatedLength y; */
  38.   NS_IMETHOD GetY(nsIDOMSVGAnimatedLength * *aY) = 0;
  39.  
  40.   /* readonly attribute nsIDOMSVGAnimatedLength width; */
  41.   NS_IMETHOD GetWidth(nsIDOMSVGAnimatedLength * *aWidth) = 0;
  42.  
  43.   /* readonly attribute nsIDOMSVGAnimatedLength height; */
  44.   NS_IMETHOD GetHeight(nsIDOMSVGAnimatedLength * *aHeight) = 0;
  45.  
  46.   /* readonly attribute nsIDOMSVGAnimatedPreserveAspectRatio preserveAspectRatio; */
  47.   NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio) = 0;
  48.  
  49. };
  50.  
  51. /* Use this macro when declaring classes that implement this interface. */
  52. #define NS_DECL_NSIDOMSVGIMAGEELEMENT \
  53.   NS_IMETHOD GetX(nsIDOMSVGAnimatedLength * *aX); \
  54.   NS_IMETHOD GetY(nsIDOMSVGAnimatedLength * *aY); \
  55.   NS_IMETHOD GetWidth(nsIDOMSVGAnimatedLength * *aWidth); \
  56.   NS_IMETHOD GetHeight(nsIDOMSVGAnimatedLength * *aHeight); \
  57.   NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSIDOMSVGIMAGEELEMENT(_to) \
  61.   NS_IMETHOD GetX(nsIDOMSVGAnimatedLength * *aX) { return _to GetX(aX); } \
  62.   NS_IMETHOD GetY(nsIDOMSVGAnimatedLength * *aY) { return _to GetY(aY); } \
  63.   NS_IMETHOD GetWidth(nsIDOMSVGAnimatedLength * *aWidth) { return _to GetWidth(aWidth); } \
  64.   NS_IMETHOD GetHeight(nsIDOMSVGAnimatedLength * *aHeight) { return _to GetHeight(aHeight); } \
  65.   NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio) { return _to GetPreserveAspectRatio(aPreserveAspectRatio); } 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  68. #define NS_FORWARD_SAFE_NSIDOMSVGIMAGEELEMENT(_to) \
  69.   NS_IMETHOD GetX(nsIDOMSVGAnimatedLength * *aX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetX(aX); } \
  70.   NS_IMETHOD GetY(nsIDOMSVGAnimatedLength * *aY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetY(aY); } \
  71.   NS_IMETHOD GetWidth(nsIDOMSVGAnimatedLength * *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
  72.   NS_IMETHOD GetHeight(nsIDOMSVGAnimatedLength * *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
  73.   NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreserveAspectRatio(aPreserveAspectRatio); } 
  74.  
  75. #if 0
  76. /* Use the code below as a template for the implementation class for this interface. */
  77.  
  78. /* Header file */
  79. class nsDOMSVGImageElement : public nsIDOMSVGImageElement
  80. {
  81. public:
  82.   NS_DECL_ISUPPORTS
  83.   NS_DECL_NSIDOMSVGIMAGEELEMENT
  84.  
  85.   nsDOMSVGImageElement();
  86.  
  87. private:
  88.   ~nsDOMSVGImageElement();
  89.  
  90. protected:
  91.   /* additional members */
  92. };
  93.  
  94. /* Implementation file */
  95. NS_IMPL_ISUPPORTS1(nsDOMSVGImageElement, nsIDOMSVGImageElement)
  96.  
  97. nsDOMSVGImageElement::nsDOMSVGImageElement()
  98. {
  99.   /* member initializers and constructor code */
  100. }
  101.  
  102. nsDOMSVGImageElement::~nsDOMSVGImageElement()
  103. {
  104.   /* destructor code */
  105. }
  106.  
  107. /* readonly attribute nsIDOMSVGAnimatedLength x; */
  108. NS_IMETHODIMP nsDOMSVGImageElement::GetX(nsIDOMSVGAnimatedLength * *aX)
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112.  
  113. /* readonly attribute nsIDOMSVGAnimatedLength y; */
  114. NS_IMETHODIMP nsDOMSVGImageElement::GetY(nsIDOMSVGAnimatedLength * *aY)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* readonly attribute nsIDOMSVGAnimatedLength width; */
  120. NS_IMETHODIMP nsDOMSVGImageElement::GetWidth(nsIDOMSVGAnimatedLength * *aWidth)
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* readonly attribute nsIDOMSVGAnimatedLength height; */
  126. NS_IMETHODIMP nsDOMSVGImageElement::GetHeight(nsIDOMSVGAnimatedLength * *aHeight)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* readonly attribute nsIDOMSVGAnimatedPreserveAspectRatio preserveAspectRatio; */
  132. NS_IMETHODIMP nsDOMSVGImageElement::GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* End of implementation class template. */
  138. #endif
  139.  
  140.  
  141. #endif /* __gen_nsIDOMSVGImageElement_h__ */
  142.